package com.ruoyi.consumer.mapper;

import java.util.List;
import com.ruoyi.consumer.domain.COrderInvoice;

/**
 * 发票Mapper接口
 * 
 * @author lizhouwei
 * @date 2023-11-17
 */
public interface COrderInvoiceMapper 
{
    /**
     * 查询发票
     * 
     * @param invoiceId 发票主键
     * @return 发票
     */
    public COrderInvoice selectCOrderInvoiceByInvoiceId(Integer invoiceId);

    /**
     * 查询发票列表
     * 
     * @param cOrderInvoice 发票
     * @return 发票集合
     */
    public List<COrderInvoice> selectCOrderInvoiceList(COrderInvoice cOrderInvoice);

    /**
     * 新增发票
     * 
     * @param cOrderInvoice 发票
     * @return 结果
     */
    public int insertCOrderInvoice(COrderInvoice cOrderInvoice);

    /**
     * 修改发票
     * 
     * @param cOrderInvoice 发票
     * @return 结果
     */
    public int updateCOrderInvoice(COrderInvoice cOrderInvoice);

    /**
     * 删除发票
     * 
     * @param invoiceId 发票主键
     * @return 结果
     */
    public int deleteCOrderInvoiceByInvoiceId(Integer invoiceId);

    /**
     * 批量删除发票
     * 
     * @param invoiceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCOrderInvoiceByInvoiceIds(Integer[] invoiceIds);
}
